///////////////////////////////////////////////////////////////////////
//////// H A M M E R  S K I N  das O R I G I N A L
//////// Fr Today Plus Version 0.11.0	
//////// Skin Version 01.04a	
//////// Author: Wichtel
//////// Datum: 19.09.2004          
///////////////////////////////////////////////////////////////////////
//////// Dutch translation: Motormuis
//////// Version: NL 1.04a
//////// Date: 19-09-2004
//////// Geoptimaliseerd door The Gamblers d.d. 23-11-2004
///////////////////////////////////////////////////////////////////////
// Region & overzicht	
//
// REGION	1,0       		Knoppengebied
// REGION	2,0         	Hoofdpagina
// REGION  	4            	Ondergedeelte van de Hoofdpagina
// REGION  	4,1 - 4,2 	Battery en geheugen van de Hoofdpagina ( Region 2 )
// REGION  	4,3 - 4,8 	Nieuwsberichten op de hoofdpagina ( Region 6 )
// REGION  	3,0	 	Het weer
// REGION  	5,0           	Agenda op de hoofpagina
// REGION  	6,0           	Nieuwsberichten op de hoofdpagina
// REGION  	7,0 - 7,5   	Weerdetail / Maanfasen / Sterrenbeelden op weerpagina
// REGION  	8,0 	   	Weerpopup op Weerpagina
// REGION  	9,0           	Agenda 
// REGION 	10,0          	Taken
// REGION 	11,0 -11,1 	Wereldtijden
// REGION 	12,0          	Rss
// REGION 	13,0          	RSS BERRSCHRIFTEN
// REGION 	14,0          	Rss Text
// REGION 	15,0 -15,4    	VERKNPFUNGEN
// REGION	16,0		SYSTEM	
// REGION	17,0		SYSTEMAUSWAHLPOPUP
// REGION	18,0 -18,1	Eigennaarsinformatie / Skinversie

maxheight,267
height,267

initregion,1,0
initregion,2,0
initregion,6,0
initregion,3,999
initregion,7,999
initregion,8,999
initregion,9,999
initregion,10,999
initregion,11,999
initregion,12,999
initregion,13,999
initregion,14,999
initregion,15,999
initregion,16,999
initregion,17,999
initregion,18,999

initvar,var0,1	//Weeraanzicht hoofdpagina
initvar,var2,1  //Rss Head lines
initvar,var9,1	//Weeraanzicht weerpagina
initvar,var10,2	//Weer iconen wissel
initvar,var24,2	//Knoppenwissel
initvar,var13,1	//Wetterscroll
initvar,var17,0	//Batery / geheugen wissel
initvar,var16,0	//RSS Mainpage Schlagzeilenwechsel

////// Wisselen kleur van de knoppen / plaatjes

if,var,var24,,=,1
	options,imagedir,images\Hammerskin
else
	options,imagedir,images\Metallic
endif

options,weathericondir,Weather Icons\Stardock,png

color,transparent,255_0_255
color,replacement,0_0_0-,-1_6_-1
color,shadow,125_125_125
color,font,0_0_0

calcvar,var18,fromconfig,numlauncher
calcvar,var28,fromconfig,numrss
calcvar,var29,fromconfig,numcities

//////////////////////////////////////////////////////////////////////////
//  REGION 2  Hoofdpagina   REGION 4,1-4,2
/////////////////////////////////////////////////////////////////////////
region,2,0,20
	defregion,2,0,0,210,267,1

	cleararea,0,0,211,267

	deactivatebuttons,3
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,2
	activatebuttons,4
	activatebuttons,5

	updateregions,5
	updateregions,6

	//====================================
	//Datum / dag op Hoofdpagina
	//====================================
	
	changefont,Tahoma,23,i
	time,4,0,-1,5,ls,"dddd",,
	changefont,Tahoma,16,
	time,6,22,-1,5,ls,"d MMMM yyyy",,
	changefont,Tahoma,12,

	//===================================
	//Aktueel weer op Hoofdpagina
	//===================================
	load,city,1
	
	calcvar,var20,weatherupdatetimediff
	if,var,var20,,<,120
		text,77,50,Aktueel ,c
		todayicon,61,63,,t
		today,temp,95,60,, c,l
		today,windspeed,95,69,, km/h,l
		color,font,-1_4_-1
		today,humidity,95,78,, %,l
	else
		calcvar,var21,firstvalidforecastday
		if,var,var21,,<,6
			forecast,date_ddd,%var21%,77,50,,,c
			forecasticon,%var21%,61,63,,t
			color,font,195_0_0
			forecast,high,%var21%,95,60,,,l
			color,font,0_0_195
			forecast,low,%var21%,95,69,,,l
			color,font,-1_4_-1
			forecast,precipitation,%var21%,95,78,,%,l
			addvar,var21,1
		else
			image,61,63,none.png,t
		endif
	endif

	//===================================
	//Zon op/onder op Hoofdpagina
	//===================================

	image,5,53,sunrise.png,
	suntime,1,sunrise,official,24,53,H:mm,,,l

	image,5,69,sunset.png,
	suntime,1,sunset,official,24,69,H:mm,,,l

	suntime,1,elevation,,10,83,%05.2f,Ele: ,,l

	//========================================
	//Tijd laatste update
	//========================================
	
	if,var,var20,,<,240
		text,6,38,Laatst bijgewerkt: ,l
		text,110,38,[updatetime],r,H:mm
	else
		text,6,38,Laatst bijgewerkt: ,l
		color,font,255_0_0
		text,110,38,[updatetime],r,H:mm
		color,font,0_0_0

	endif

	if,refresh
		image,4,38,aktualiseren.png,t
	else
	endif
	
	imagebutton,4,38,Aktualisierungsbutton_main.png,,-1,7,-nohighlight,-1

	//========================================
	//Kalender op Hoofpagina
	//========================================

	image,115,5,kalender_header_main.png
	image,181,5,kalender_header_senkrecht_main_grau.png
	image,194,5,kalender_header_senkrecht_main_rot.png

	calendarheader,116,5,13

	calendar,0,0,116,18,13,10,l

	button,116,18,91,60,-1,23,0,5
	button,116,18,91,60,-1,23,1,5
	button,116,18,91,60,-1,23,2,5
	button,116,18,91,60,-1,23,3,5
	button,116,18,91,60,-1,5,-highlight,5

	//=================================
	// Battery / Geheugen
	//=================================
		
	if,var,var17,,=,0
		jumpregion,4,2
		storevar,var17=1
	else
		jumpregion,4,1
		storevar,var17=0
	endif

	//BATTERy========================

	region,4,1,-1

		image,151,93,meters_background.png,t
		battery,bar,153,93,52,13,gradient_batterymain gradient.png
		image,151,93,meters.png,t

		imagebutton,151,93,Metersbutton.png,tr,-1,0,%apps-6-2-highlight

		changefont,tahoma,11

		if,batterystatusunknown
			image,117,82,batterie_unbekannt.png,t
			text,179,83,Batt: ?,c
		else

			if,charging
				image,117,82,batterie_laden.png,t
				text,179,83,Opladen...,c
			else

				if,externalpower,=,true
					image,117,82,batterie_geladen.png,t
					text,179,83,Netspanning,c
				else
					image,117,82,batterie.png,t
					battery,remaining,179,83,Batt: , %,c
				endif
			endif
		endif

	endregion,4,1

	//Geheugen============================

	region,4,2,-1

		memory,totalused,179,82,SP: , Mb,c,%.1f
		image,151,93,meters_background.png,t
		memory,barused,153,93,52,13,gradient_Speichermain gradient.png
		image,151,93,meters.png,t
	
		imagebutton,151,93,Metersbutton.png,tr,-1,0,%apps-6-3-highlight
	
		calcvar,var17,programmemoryusedpercent

		if,var,var17,1,><,50
			image,117,82,Speicherleer.png,t
		else

			if,var,var17,51,><,80
				image,117,82,Speichervoll.png,t
			else
				image,117,82,Speicherhot.png,t
			endif
		endif

		changefont,tahoma,12

	endregion,4,2

////////////////////////////////////////////////////////////////////
/// sterrenbeelden op Hoofdpagina
///////////////////////////////////////////////////////////////////

changefont,tahoma,10b
color,font,0_0_255

calcvar,var16,firstoutlookday

if,var,var16,,<,38353
	//Jahr 2004
	addvar,var16,-37988
else
	if,var,var16,,<,38718
		//Jahr 2005
		addvar,var16,-38353
	else
		if,var,var16,,<,39083		
			//Jahr 2006
			addvar,var16,-38718
		else
			//Jahr 2007
			addvar,var16,-39083
		endif
	endif
endif


if,var,var16,20,><,49
	image,186,191,Tierkreis_Wassermann.png,l
	text,185,195,Waterman,r
else
	if,var,var16,50,><,78
		image,186,191,Tierkreis_Fische.png,l
		text,183,195,Vis,r
	else
		if,var,var16,79,><,109
			image,186,191,Tierkreis_Widder.png,l
			text,183,195,Ram,r
		else
			if,var,var16,110,><,139
				image,186,191,Tierkreis_Stier.png,l
				text,183,195,Stier,r
			else
				if,var,var16,140,><,171
					image,186,191,Tierkreis_Zwillinge.png,l
					text,183,195,Tweeling,r
				else
					if,var,var16,172,><,202
						image,186,191,Tierkreis_Krebs.png,l
						text,183,195,Kreeft,r
					else
						if,var,var16,203,><,234
							image,186,191,Tierkreis_Lwe.png,l
							text,183,195,Leeuw,r
						else
						endif
					endif
				endif
			endif
		endif
	endif
endif

if,var,var16,235,><,265
	image,186,191,Tierkreis_Jungfrau.png,l
	text,183,195,Maagd,r
else
	if,var,var16,266,><,295
		image,186,191,Tierkreis_Waage.png,l
		text,183,195,Weegschaal,r
	else
		if,var,var16,296,><,325
			image,186,191,Tierkreis_Skorpion.png,l
			text,183,195,Schorpioen,r
		else
			if,var,var16,326,><,354
				image,186,191,Tierkreis_Schtze.png,l
				text,183,195,Boogschutter,r
			else
				if,var,var16,355,><,366
					image,186,191,Tierkreis_Steinbock.png,l
					text,183,195,Steenbok,r
				else
					if,var,var16,0,><,19
						image,186,191,Tierkreis_Steinbock.png,l
						text,183,195,Steenbok,r
					else		
					endif
				endif
			endif
		endif
	endif
endif

color,font,0_0_0
changefont,tahoma,12

	//=======================================
	// Text voor Rss 
	//=======================================

	image,4,195,headline.png
	text,5,195,Nieuwskrant,l

	//=======================================
	// Text voor agenda 
	//=======================================

	image,4,97,Headline.png
	button,4,97,80,12,-1,23,0
	button,4,97,80,12,5,22,,
	color,font,0_0_0
	text,6,97,Agenda,l
	color,font,-1_4_-1

	//=======================================
	// Quicklaunch op hoofdpagina 
	//=======================================

	imagebutton,4,246,icon_button.png,t,-1,0,%apps-1-1
	shortcut,4,246,apps-1-1,s

	imagebutton,27,246,icon_button.png,t,-1,0,%apps-1-2
	shortcut,27,246,apps-1-2,s

	imagebutton,50,246,icon_button.png,t,-1,0,%apps-1-3
	shortcut,50,246,apps-1-3,s

	imagebutton,73,246,icon_button.png,t,-1,0,%apps-1-4
	shortcut,73,246,apps-1-4,s

	imagebutton,96,246,icon_button.png,t,-1,0,%apps-1-5
	shortcut,96,246,apps-1-5,s

	imagebutton,119,246,icon_button.png,t,-1,0,%apps-1-6
	shortcut,119,246,apps-1-6,s

	imagebutton,142,246,icon_button.png,t,-1,0,%apps-1-7
	shortcut,142,246,apps-1-7,s

	imagebutton,165,246,icon_button.png,t,-1,0,%apps-1-8
	shortcut,165,246,apps-1-8,s

	imagebutton,188,246,icon_button.png,t,-1,0,%apps-1-9
	shortcut,188,246,apps-1-9,s

	image,2,240,dotted_line.png,t

endregion,2,0

//////////////////////////////////////////////////////////////////////////
// REGION 5 Agenda op Hoofdpagina
//////////////////////////////////////////////////////////////////////////
region,5,0,15
	defregion,5,0,110,210,85,

	options,calendarfilter,1
	options,taskfilter,1
	options,dateformat,3,15,18,%changefont,tahoma,11,%%line,203,10,-1_6_-1%%bold%%date,l%%regularfont%
	options,today-text,'vandaag', dd MMMM  yyyy
	options,tomorrow-text,'morgen'. dd MMMM  yyyy

	options,apptformat,0,11,13,%iconstart,51%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%image,0,2,small_arrow_right.png,t%%tab,7%%starttime,H:mm%%tab,60%%//bold%%subject%%regularfont%

	options,apptallday,0,11,13,%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%textcolor,0_128_0%%image,0,2,small_arrow_right.png,t%%tab,7%Hele dag%tab,76%%//bold%%subject%%regularfont%%textcolor,0_0_0%

	options,taskformat,0,11,13,%iconstart,51%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%checkbox,0,0,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,60%%subject%%changefont,tahoma,11,%

	options,taskoverdue,0,11,13,%textcolor,255_0_0%%iconstart,60%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%checkbox,0,0,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,68%%subject%%changefont,tahoma,11,%%resettextcolor%

	options,taskcomplete,0,11,13,%iconstart,60%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,s%%checkbox,0,0,12,12,dot.png,dot1.png,tr%%tab,10%[%enddate,dd/MM%]%tab,68%%subject%%changefont,tahoma,11,%

	options,blanktext,-1,11,13,

	outlook,4,110,205,86,0,0,228,,,5
	button,4,110,12,64,-1,24,nohighlight,5
	changefont,tahoma,12,

//// weeknummer

		calcvar,var33,firstoutlookday

	if,var,var33,,<,38355
			addvar,var33,-37977
	else
		if,var,var33,<,38719
			addvar,var33,-38348
		else
			if,var,var33,<,39083
				addvar,var33,-38712
			else
				addvar,var33,-39076
			endif
		endif
	endif

	calcvar,var32,/,%var33%,7
	changefont,tahoma,10b
	text,205,110,Week %var32%,r
	changefont,tahoma,12
	
endregion,5,0

/////////////////////////////////////////////////////////////////////////////////////////////
// REGION 6 Nieuws op hoofdpagina REGION 4,3-4,6
/////////////////////////////////////////////////////////////////////////////////////////////
region,6,0,10
	defregion,6,0,207,210,35,
	if,var,var15,,=,0
		jumpregion,4,3
		storevar,var15=1
	else
		if,var,var15,,=,1
			jumpregion,4,4
			storevar,var15=2
		else
			if,var,var15,,=,2
				jumpregion,4,5
				storevar,var15=3
			else
				if,var,var15,,=,3
					jumpregion,4,6
					storevar,var15=4
				else
					if,var,var15,,=,4
						jumpregion,4,7
						storevar,var15=5
					else
						if,var,var15,,=,5
							jumpregion,4,8
							storevar,var15=0
						else
						endif
					endif
				endif
			endif
		endif
	endif

	// RSS NEWS TICKER ============================

	region,4,3,-1
		load,rss,1
		RSS,title,4,207,205,12,1,,,l
		RSS,title,4,218,205,12,2,,,l
		RSS,title,4,229,205,12,3,,,l
	endregion,4,3
	
	// RSS NEWS TICKER ============================

	region,4,4,-1
		load,rss,2
		RSS,title,4,207,205,12,1,,,l
		RSS,title,4,218,205,12,2,,,l
		RSS,title,4,229,205,12,3,,,l
	endregion,4,4
	
	// RSS NEWS TICKER ============================

	region,4,5,-1
		load,rss,1
		RSS,title,4,207,205,12,4,,,l
		RSS,title,4,218,205,12,5,,,l
		RSS,title,4,229,205,12,6,,,l
	endregion,4,5
	
	// RSS NEWS TICKER ============================

	region,4,6,-1
		load,rss,2
		RSS,title,4,207,205,12,4,,,l
		RSS,title,4,218,205,12,5,,,l
		RSS,title,4,229,205,12,6,,,l
	endregion,4,6
	
	// RSS NEWS TICKER ============================

	region,4,7,-1
		load,rss,1
		RSS,title,4,207,205,12,7,,,l
		RSS,title,4,218,205,12,8,,,l
		RSS,title,4,229,205,12,9,,,l
	endregion,4,7
	
	//RSS NEWS TICKER ============================

	region,4,8,-1
		load,rss,2
		RSS,title,4,207,205,12,7,,,l
		RSS,title,4,218,205,12,8,,,l
		RSS,title,4,229,205,12,9,,,l
	endregion,4,8
endregion,6,0
/////////////////////////////////////////////////////////////////////////
// NEWSTICKER DER MAINPAGE  ENDE
/////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
// REGION 3  WETTER PAGE  
/////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
// REGION 3,0 WETTER HAUPTANSICHT  
/////////////////////////////////////////////////////////////////////////

region,3,0,60
	defregion,3,0,0,211,267,1

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,5
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,3

	if,var,var9,,>,%var29%
		storevar,var9=1
	else
	endif

	load,city,%var9%

	//===================================
	//BERSCHRIFTEN
	//===================================

	image,4,3,header.png,t
	changefont,Tahoma,12,b

	text,105,2,Weerbericht van ,r
	text,105,2,[name],l


	//===================================
	//AKTUALISIERUNGSZEIT
	//===================================

	changefont,Tahoma,12,

	image,4,18,header.png,t

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240
		text,39,18,Actuele informatie: ,l
		text,129,18,[updatetime],l,HH:mm
		text,156,18,Uur,l
	else

		if,var,var20,240,><,600
			calcvar,var20,/,%var20%,60

			color,font,255_0_0
			text,30,18,Laatst bijgewerkt: ,l
			text,133,18,%var20%,l,
			text,142,18,uur geleden,l
			color,font,0_0_0
		else

			if,var,var20,600,><,1440
				calcvar,var20,/,%var20%,60

				color,font,255_0_0
				text,30,18,Laatst bijgewerkt: ,l
				text,132,18,%var20%,l,
				text,146,18,uur geleden,l
				color,font,0_0_0
			else

				if,var,var20,1440,><,2880
					calcvar,var20,/,%var20%,1440

					color,font,255_0_0
					text,43,18,Laatst bijgewerkt: ,l
					text,145,18,%var20%,l
					text,152,18,dag geleden,l
					color,font,0_0_0
				else

					if,var,var20,2880,><,14400
						calcvar,var20,/,%var20%,1440

						color,font,255_0_0
						text,38,18,Laatst bijgewerkt: ,l
						text,141,18,%var20%,l
						text,148,18,dagen geleden,l
						color,font,0_0_0
					else

						if,var,var20,,>,14401
							calcvar,var20,/,%var20%,1440

							color,font,255_0_0
							text,35,18,Laatst bijgewerkt: ,l
							text,136,18,%var20%,l
							text,148,18,dagen geleden,l
							color,font,0_0_0

						endif
					endif
				endif
			endif
		endif
	endif



	//===================================
	//SONNENDARSTELLUNG
	//===================================

	image,3,31,sun.png,t
	suntime,%var9%,sunrise,official,38,31,HH:mm,Op:    ,,l
	suntime,%var9%,sunset,official,38,41,HH:mm,Onder: ,,l
	suntime,%var9%,daylength,official,38,51,HH:mm,Daglengte:  ,,l


	//===================================
	//MONDDARSTELLUNG
	//===================================

	calcvar,var14,moonphase,0
	imagemeter,109,34,%var14%,phasen.png,tr,0,7
	moontime,%var9%,rise,0,139,31,HH:mm,Op:    ,,l 
	moontime,%var9%,set,0,139,41,HH:mm,Onder: ,,l 
	moontime,%var9%,visible,0,139,51,,Zichtbaar:,%,l


	//===================================
	//AKTUELLE WETTERDATEN
	//===================================

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240
		todayicon,5,70,,t
		today,sky,50,66,,sky,l
		text,50,76,Temperatuur:,l
		today,temp,120,76,, C,l
		text,50,86,Gevoelstemp.:,l
		today,realtemp,120,86,, C,l
		text,50,96,Luchtdruk:,l
		today,barometer,120,96,, hPa,l
		today,humidity,5,108,Luchtvochtigheid: , %,l
		today,uv,120,108,UV-Index: ,,l
		today,winddir,5,118,Wind uit: , ,l
		today,windspeed,90,118,Windsnelheid: , Kph,l
		today,date,5,128,Weergegevens van , Uur,l
	else
		changefont,tahoma,14
		text,104,100,Helaas geen actuele informatie,c
		changefont,tahoma,12
	endif


	//===================================
	//WETTERVORHERSAGE   4 TAGE
	//===================================

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240
		imagebutton,5,145,wetter_button_detail.png,t,7,4,0,3
		button,5,145,95,13,-1,6,var1=1
		forecasticon,1,5,162,,t
		forecast,date_dddd  dd.MM,1,7,145,,,l	
		text,40,160,Max:,l
		text,40,170,Min:,l
		text,40,180,N:,l
		forecast,high,1,100,160,, C,r
		forecast,low,1,100,170,, C,r
		forecast,precipitation,1,100,180,, %,r

		imagebutton,110,145,wetter_button_detail.png,t,7,4,0,3
		button,110,145,95,13,-1,6,var1=2
		forecasticon,2,110,162,,t
		forecast,date_dddd  dd.MM,2,112,145,,,l
		text,145,160,Max:,l
		text,145,170,Min:,l
		text,145,180,N:,l
		forecast,high,2,205,160,, C,r
		forecast,low,2,205,170,, C,r
		forecast,precipitation,2,205,180,, %,r

		imagebutton,5,198,wetter_button_detail.png,t,7,4,0,3
		button,5,198,95,13,-1,6,var1=3
		forecasticon,3,5,215,,t
		forecast,date_dddd  dd.MM,3,7,198,,,l
		text,40,213,Max:,l
		text,40,223,Min:,l
		text,40,233,N:,l
		forecast,high,3,100,213,, C,r
		forecast,low,3,100,223,, C,r
		forecast,precipitation,3,100,233,, %,r

		imagebutton,110,198,wetter_button_detail.png,t,7,4,0,3
		button,110,198,95,13,-1,6,var1=4
		forecasticon,4,110,215,,t
		forecast,date_dddd  dd.MM,4,112,198,,,l
		text,145,213,Max:,l
		text,145,223,Min:,l
		text,145,233,N:,l
		forecast,high,4,205,213,, C,r
		forecast,low,4,205,223,, C,r
		forecast,precipitation,4,205,233,, %,r
	else
		calcvar,var21,firstvalidforecastday

		if,var,var21,,<,6
			imagebutton,5,145,wetter_button_detail.png,t,7,4,0,3
			button,5,145,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,5,162,,t
			forecast,date_dddd  dd.MM,%var21%,7,145,,,l	
			text,40,160,Max:,l
			text,40,170,Min:,l
			text,40,180,N:,l
			forecast,high,%var21%,100,160,, C,r
			forecast,low,%var21%,100,170,, C,r
			forecast,precipitation,%var21%,100,180,, %,r

			addvar,var21,1
		else
			image,5,162,none.png,t
		endif


		if,var,var21,,<,6
			imagebutton,110,145,wetter_button_detail.png,t,7,4,0,3
			button,110,145,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,110,162,,t
			forecast,date_dddd  dd.MM,%var21%,112,145,,,l
			text,145,160,Max:,l
			text,145,170,Min:,l
			text,145,180,N:,l
			forecast,high,%var21%,205,160,, C,r
			forecast,low,%var21%,205,170,, C,r
			forecast,precipitation,%var21%,205,180,, %,r

			addvar,var21,1
		else
			image,110,162,none.png,t
		endif


		if,var,var21,,<,6
			imagebutton,5,198,wetter_button_detail.png,t,7,4,0,3
			button,5,198,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,5,215,,t
			forecast,date_dddd  dd.MM,%var21%,7,198,,,l
			text,40,213,Max:,l
			text,40,223,Min:,l
			text,40,233,N:,l
			forecast,high,%var21%,100,213,, C,r
			forecast,low,%var21%,100,223,, C,r
			forecast,precipitation,%var21%,100,233,, %,r

			addvar,var21,1
		else
			image,5,215,none.png,t
		endif


		if,var,var21,,<,6
			imagebutton,110,198,wetter_button_detail.png,t,7,4,0,3
			button,110,198,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,110,215,,t
			forecast,date_dddd  dd.MM,%var21%,112,198,,,l
			text,145,213,Max:,l
			text,145,223,Min:,l
			text,145,233,N:,l
			forecast,high,%var21%,205,213,, C,r
			forecast,low,%var21%,205,223,, C,r
			forecast,precipitation,%var21%,205,233,, %,r

			addvar,var21,1
		else
			image,110,215,none.png,t
		endif
	endif



	//===================================
	//WETTERAUSWAHL
	//===================================

	imagebutton,125,251,wetter_auswahl.png,t,8,4,0,3
	text,140,251,Keuze,l


	//============================================
	// AKTUALISIERUNGSBUTTON
	//============================================

	button,5,251,83,13,8,4,999
	button,5,251,83,13,7,4,999
	imagebutton,5,251,wetterbutton_aktualisieren.png,,-1,7,,3
	text,19,251,Bijwerken...,l

	if,refresh
		image,5,251,Aktualisierung_wetter.png,
		jumpregion,7,999
		jumpregion,8,999
	else
	endif


	//===================================
	//ORTSZEIT
	//===================================

	image,91,249,Wetter_ortszeit.png,
	time,106,251,7,4,c

endregion,3,0


////////////////////////////////////////////////////////////////////////
// REGION 7,0 - WETTERDETAILS 
////////////////////////////////////////////////////////////////////////

region,7,0,10

	cleararea,11,47,192,151

	clearregion,8

	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	load,city,%var9%

	image,10,45,wetterpopup.png


	//===================================
	//SCHLIESSENBUTTON
	//===================================

	imagebutton,180,51,popupschliessen.png,t,7,4,999,3


	//===================================
	//BERSCHRIFTEN
	//===================================

	changefont,Tahoma,13,b
	text,105,47,[name],c
	changefont,Tahoma,12,

	forecast,date_dddd dd MMMM yyyy,%var1%,105,60,,,c


	//===================================
	//WETTERDETAILS
	//===================================

	forecasticon,%var1%,15,80,,t
	changefont,Tahoma,13,b
	text,105,82,Overdag :,c
	changefont,Tahoma,12,
	forecast,text,%var1%,105,94,,,c

	text,35,115,Temperatuur maximum:,l
	text,35,125,Temperatuur minimum:,l
	text,35,135,Neerslag kans:,l

	color,font,255_0_0
	forecast,high,%var1%,175,115,, C,r
	color,font,0_0_255
	forecast,low,%var1%,175,125,, C,r
	color,font,0_0_0
	forecast,precipitation,%var1%,175,135,, %,r

	nightforecasticon,%var1%,15,155,,t
	changefont,Tahoma,13,b
	text,105,157,'s Nachts :,c
	changefont,Tahoma,12,
	forecast,nighttext,%var1%,105,169,,,c

endregion,7,0


////////////////////////////////////////////////////////////////////////
// REGION 8,0 - WETTERAUSWAHL POPUP
////////////////////////////////////////////////////////////////////////

region,8,0,-1
cleararea,86,157,124,92
	clearregion,7

	deactivatebuttons,3
	deactivatebuttons,7

	activatebuttons,8

	image,85,157,wetter_auswahl_popup.png

	changefont,Tahoma,12,

	text,91,160,Maak Keuze :,l

	text,91,174,Sterrenbeelden,l
	imagebutton,87,171,wetter_auswahl_popup_button.png,tr,7,4,2,3
	button,87,171,100,15,8,4,999

	text,91,188,Maanfasen,l
	imagebutton,87,186,wetter_auswahl_popup_button.png,tr,7,4,1,3
	button,87,186,100,12,15,4,999

	imagebutton,191,178,scrollup.png,t,8,13,var13_-2
	imagebutton,191,231,scrolldown.png,t,8,13,var13_2

	if,var,var13,,<,1
		storevar,var13=1
	else
	endif


	if,var,var13,,>,%var29%
		storevar,var13=1
	else
	endif


	if,var,var13,,<,1
		storevar,var13=%var29%
	else
	endif

	text,193,159,%var29%,l
	text,193,203,%var13%,l

	load,city,%var13%
	image,91,204,small_arrow_right.png,t
	text,98,202,[name],l
	imagebutton,87,201,wetter_auswahl_popup_button.png,tr,3,4,0,3
	button,87,201,100,15,-1,6,var9=%var13%
	button,87,201,100,15,8,4,999

	
	if,var,var13,,<,%var29%
		addvar,var13,1

		load,city,%var13%
		image,91,218,small_arrow_right.png,t
		text,98,216,[name],l
		imagebutton,87,216,wetter_auswahl_popup_button.png,tr,3,4,0,3
		button,87,216,100,15,-1,6,var9=%var13%
		button,87,216,100,15,8,4,999

		addvar,var13,-1

	else
	endif
	
	color,font,255_0_0
	text,110,233,Annuleren,l
	imagebutton,87,231,wetter_auswahl_popup_button_abbrechen.png,tr,8,4,999,3
	color,font,0_0_0

	changefont,Tahoma,12,

endregion,8,0


////////////////////////////////////////////////////////////////////////
// REGION 7,1 - MONDPHASEN 1
////////////////////////////////////////////////////////////////////////

region,7,1,-1

	cleararea,12,78,191,84

	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	clearregion,8

	image,10,78,Moonphasenpopup.png
	changefont,Tahoma,13,b
	text,105,80,Maanfasen,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3
	button,180,83,15,15,-1,6,var7=1

	load,city,%var0%
              changefont,tahoma,10,b
	//=================================================
              time,19,101,-1,5,l,"dd.MM",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,19,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,32,143,,, %,c
	//=================================================
	addvar,var7,1
              time,51,101,-1,5,l,"dd.MM",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,51,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,64,143,,, %,c
	//=================================================
	addvar,var7,1
              time,83,101,-1,5,l,"dd.MM",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,83,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,96,143,,, %,c
	//=================================================
	addvar,var7,1
              time,115,101,-1,5,l,"dd.MM",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,115,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,128,143,,, %,c
	//=================================================
	addvar,var7,1
              time,147,101,-1,5,l,"dd.MM",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,147,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,160,143,,, %,c
	//=================================================

              imagebutton,181,118,pfeilrechts.png,t,0,13,var7_1
	button,181,118,15,15,7,4,1

endregion,7,1


////////////////////////////////////////////////////////////////////////
// REGION 7,2 - TIERKREISZEICHEN 1/4
////////////////////////////////////////////////////////////////////////

region,7,2,10
             
	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	clearregion,8

	cleararea,12,78,191,84

	image,10,78,Moonphasenpopup.png

	changefont,Tahoma,13,b
	text,105,80,Sterrenbeelden 1/4,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3

	changefont,tahoma,11,

	
	text,52,109,vanaf 22.12,c
	image,42,118,Tierkreis_Steinbock.png,c		
	text,52,137,Steenbok,c


	text,106,109,vanaf 21.01,c
	image,96,118,Tierkreis_Wassermann.png,c		
	text,106,137,Waterman,c


	text,162,109,vanaf 20.02,c
	image,152,118,Tierkreis_Fische.png,c		
	text,162,137,Vis,c


	changefont,tahoma,12,

	imagebutton,16,120,pfeillinks.png,t,7,4,5,3
	imagebutton,183,120,pfeilrechts.png,t,7,4,3,3

endregion,7,2


////////////////////////////////////////////////////////////////////////
// REGION 7,3 - TIERKREISZEICHEN 2/4
////////////////////////////////////////////////////////////////////////
region,7,3,10
             
	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	clearregion,8

	cleararea,12,78,191,84

	image,10,78,Moonphasenpopup.png

	changefont,Tahoma,13,b
	text,105,80,Sterrenbeelden 2/4,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3

	changefont,tahoma,11,

	
	text,52,109,vanaf 21.03,c
	image,42,118,Tierkreis_Widder.png,c		
	text,52,137,Ram,c


	text,106,109,vanaf 21.04,c
	image,96,118,Tierkreis_Stier.png,c		
	text,106,137,Stier,c


	text,162,109,vanaf 21.05,c
	image,152,118,Tierkreis_Zwillinge.png,c		
	text,162,137,Tweeling,c


	changefont,tahoma,12,

	imagebutton,16,120,pfeillinks.png,t,7,4,2,3
	imagebutton,183,120,pfeilrechts.png,t,7,4,4,3

endregion,7,3


////////////////////////////////////////////////////////////////////////
// REGION 7,4 - TIERKREISZEICHEN 3/4
////////////////////////////////////////////////////////////////////////

region,7,4,10
             
	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	clearregion,8

	cleararea,12,78,191,84

	image,10,78,Moonphasenpopup.png

	changefont,Tahoma,13,b
	text,105,80,Sterrenbeelden 3/4,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3

	changefont,tahoma,11,

	
	text,52,109,vanaf 22.06,c
	image,42,118,Tierkreis_krebs.png,c		
	text,52,137,Kreeft,c


	text,106,109,vanaf 23.07,c
	image,96,118,Tierkreis_lwe.png,c		
	text,106,137,Leeuw,c


	text,162,109,vanaf 24.08,c
	image,152,118,Tierkreis_jungfrau.png,c		
	text,162,137,Maagd,c


	changefont,tahoma,12,

	imagebutton,16,120,pfeillinks.png,t,7,4,3,3
	imagebutton,183,120,pfeilrechts.png,t,7,4,5,3

endregion,7,4


////////////////////////////////////////////////////////////////////////
// REGION 7,5 - TIERKREISZEICHEN 4/4
////////////////////////////////////////////////////////////////////////

region,7,5,10
             
	deactivatebuttons,3
	deactivatebuttons,8
	activatebuttons,7

	clearregion,8

	cleararea,12,78,191,84

	image,10,78,Moonphasenpopup.png

	changefont,Tahoma,13,b
	text,105,80,Sterrenbeelden 4/4,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3

	changefont,tahoma,11,

	
	text,52,109,vanaf 24.09,c
	image,42,118,Tierkreis_waage.png,c		
	text,52,137,Weegschaal,c


	text,106,109,vanaf 24.10,c
	image,96,118,Tierkreis_skorpion.png,c		
	text,106,137,Schorpioen,c


	text,162,109,vanaf 23.11,c
	image,152,118,Tierkreis_Schtze.png,c		
	text,162,137,Boogschutter,c


	changefont,tahoma,12,

	imagebutton,16,120,pfeillinks.png,t,7,4,4,3
	imagebutton,183,120,pfeilrechts.png,t,7,4,2,3

endregion,7,5


////////////////////////////////////////////////////////////////////////
// WETTERPAGE ENDE
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 9,0 KALENDER 
////////////////////////////////////////////////////////////////////////

region,9,0,30
	defregion,9,0,0,210,267,1

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,5
	deactivatebuttons,4
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,9


	//===========================================
	// BERSCHRIFT
	//===========================================

	image,4,3,header.png

	changefont,tahoma,12,b
	text,105,3,AGENDA,c
	changefont,tahoma,12


	//===========================================
	// KALENDER AKTUELLER MONAT
	//===========================================

	image,5,155,Kalender_header_poom.png
	image,5,170,kalender_header_main.png
	image,71,170,kalender_header_senkrecht_main_grau.png
	image,84,170,kalender_header_senkrecht_main_rot.png

	calendarheader,6,170,13

	calendar,0,0,6,183,13,10,l

	button,6,183,91,60,-1,5,0-highlight,9
	button,6,183,91,60,-1,23,0,9
	button,6,183,91,60,-1,23,1,9
	button,6,183,91,60,-1,23,2,9
	button,6,183,91,60,-1,23,3,9
	button,6,183,91,60,-1,11,0,9

	text,52,155,[caldate],0,c,"MMMM, yy"

	imagebutton,3,250,kalenderpfeil_links.png,t,-1,9,0,9
	button,3,250,70,12,-1,9,1,9


	//===========================================
	// KALENDER NCHSTER MONAT
	//===========================================

	image,115,155,kalender_header_poom.png
	image,115,170,kalender_header_main.png
	image,181,170,kalender_header_senkrecht_main_grau.png
	image,194,170,kalender_header_senkrecht_main_rot.png

	calendarheader,116,170,13

	calendar,1,1,116,183,13,10,l

	button,116,183,91,60,-1,5,1-highlight,9
	button,116,183,91,60,-1,23,0,9
	button,116,183,91,60,-1,23,1,9
	button,116,183,91,60,-1,23,2,9
	button,116,183,91,60,-1,23,3,9
	button,116,183,91,60,-1,11,1,9

	text,160,155,[caldate],1,c,"MMMM, yy"

	imagebutton,139,250,kalenderpfeil_rechts.png,t,-1,8,1,9
	button,139,250,70,12,-1,8,0,9


	//===========================================
	// RESET TASTE
	//===========================================

	imagebutton,75,250,kalender_reset.png,t,-1,10,0,9
	button,75,255,62,12,-1,10,1,9
	button,75,255,62,12,-1,22,0,9
	button,75,255,62,12,-1,23,0,9

	time,106,250,-1,5,c,dd.MM ,HH:mm,


	//===========================================
	// FILTER
	//===========================================

	options,calendarfilter,0
	options,calendarfilter,1
	options,calendarfilter,2
	options,calendarfilter,3

	options,dateformat,1,15,15,%changefont,tahoma,11,%%line,202,10,-1_6_-1%%bold%%date,l%%regularfont%
	options,today-text,'vandaag', dd MMMM  yyyy
	options,tomorrow-text,'morgen', dd MMMM  yyyy

	options,apptformat,0,11,11,%iconstart,52%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%image,0,2,small_arrow_right.png,t%%tab,7%%starttime,HH:mm%%tab,61%%//bold%%subject%%regularfont%

	options,apptallday,0,11,11,%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%textcolor,0_128_0%%image,0,2,small_arrow_right.png,t%%tab,7%Hele dag%tab,76%%//bold%%subject%%regularfont%%textcolor,0_0_0%

	options,blanktext,-1,11,11,

	outlook,4,20,203,133,1,0,228,,,9

	changefont,tahoma,12,

//===========================================
	// SCROLL ON AND STARTING FROM INDIVIDUAL DAY
	//===========================================

	imagebutton,100,171,scrollup.png,t,-1,13,var11_13,9
	button,100,171,12,12,-1,13,var12_-13,9
	button,100,171,12,12,-1,13,var8_-13,9
	button,100,171,12,12,-1,24,0,9

	imagebutton,100,218,scrolldown.png,t,-1,13,var11_-13,9
	button,100,218,12,12,-1,13,var12_13,9
	button,100,218,12,12,-1,13,var8_13,9
	button,100,218,12,12,-1,24,0,9


	//===========================================
	// SCROLL UP AND DOWN 5 DAYS
	//===========================================

	calcvar,var22,firstoutlookday
	calcvar,var22,-,%var22%,5

	imagebutton,100,156,scrollup.png,t,-1,25,var22,9
	button,100,156,12,12,-1,23,0,9

	imagebutton,100,233,scrolldown.png,t,-1,25,var19,9
	button,100,233,12,12,-1,23,0,9

	image,102,188,scrollbar.png,t

//// weeknummer

		calcvar,var33,firstoutlookday

	if,var,var31,,<,38355
			addvar,var33,-37977
	else
		if,var,var33,<,38719
			addvar,var33,-38348
		else
			if,var,var33,<,39083
				addvar,var33,-38712
			else
				addvar,var33,-39076
			endif
		endif
	endif

	calcvar,var32,/,%var33%,7
	changefont,tahoma,10b
	text,205,20,Week %var32%,r
	changefont,tahoma,12

endregion,9,0


////////////////////////////////////////////////////////////////////////
// KALENDER  ENDE 
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 10,0 AUFGABEN
////////////////////////////////////////////////////////////////////////

region,10,0,1
	defregion,10,0,0,210,267,1

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,5
	deactivatebuttons,4
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,10


	//===========================================
	// BERSCHRIFT
	//===========================================

	image,4,3,header.png

	changefont,tahoma,12,b
	text,105,3,Taken,c
	changefont,tahoma,12


	//===========================================
	// KALENDER AKTUELLER MONAT
	//===========================================

	image,5,155,Kalender_header_poom.png
	image,5,170,kalender_header_main.png
	image,71,170,kalender_header_senkrecht_main_grau.png
	image,84,170,kalender_header_senkrecht_main_rot.png

	calendarheader,6,170,13

	calendar,0,0,6,183,13,10,l

	button,6,183,91,60,-1,5,0-highlight,10
	button,6,183,91,60,-1,23,0,10
	button,6,183,91,60,-1,23,1,10
	button,6,183,91,60,-1,23,2,10
	button,6,183,91,60,-1,23,3,10
	button,6,183,91,60,-1,11,0,10


	text,52,155,[caldate],0,c,"MMMM, yy"

	imagebutton,3,250,kalenderpfeil_links.png,t,-1,9,0,10
	button,3,250,70,12,-1,9,1,10


	//===========================================
	// KALENDER NCHSTER MONAT
	//===========================================
	
	image,115,155,kalender_header_poom.png
	image,115,170,kalender_header_main.png
	image,181,170,kalender_header_senkrecht_main_grau.png
	image,194,170,kalender_header_senkrecht_main_rot.png

	calendarheader,116,170,13

	calendar,1,1,116,183,13,10,l

	button,116,183,91,60,-1,5,1-highlight,10
	button,116,183,91,60,-1,23,0,10
	button,116,183,91,60,-1,23,1,10
	button,116,183,91,60,-1,23,2,10
	button,116,183,91,60,-1,23,3,10
	button,116,183,91,60,-1,11,1,10

	text,160,155,[caldate],1,c,"MMMM, yy"

	imagebutton,139,250,kalenderpfeil_rechts.png,t,-1,8,1,10
	button,139,250,70,12,-1,8,0,10


	//===========================================
	// RESET TASTE
	//===========================================

	imagebutton,75,250,kalender_reset.png,t,10,10,0,10
	button,75,255,62,12,-1,10,1,10
	button,75,255,62,12,-1,22,0,10
	button,75,255,62,12,-1,23,0,10

	time,106,250,-1,5,c,dd.MM ,HH:mm,


	//===========================================
	// FILTER
	//===========================================

	options,taskfilter,0
	options,taskfilter,1
	options,taskfilter,2
	options,taskfilter,3

	options,dateformat,1,15,15,%changefont,tahoma,11,%%line,202,10,-1_6_-1%%bold%%date,l%%regularfont%
	options,today-text,'vandaag', dd MMMM  yyyy
	options,tomorrow-text,'morgen', dd MMMM  yyyy

	options,taskformat,0,11,13,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%checkbox,0,1,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,11,%

	options,taskoverdue,0,11,13,%textcolor,255_0_0%%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%checkbox,0,1,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,11,%%resettextcolor%

	options,taskcomplete,0,11,13,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,s%%checkbox,0,1,12,12,dot.png,dot1.png,tr%%tab,10%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,11,%

	options,blanktext,-1,11,11,

	outlook,4,20,203,133,2,0,228,,,10

//===========================================
	// SCROLL ON AND STARTING FROM INDIVIDUAL DAY
	//===========================================

	imagebutton,100,171,scrollup.png,t,-1,13,var11_13,10
	button,100,171,12,12,-1,13,var12_-13,10
	button,100,171,12,12,-1,13,var8_-13,10
	button,100,171,12,12,-1,24,0,10

	imagebutton,100,218,scrolldown.png,t,-1,13,var11_-13,10
	button,100,218,12,12,-1,13,var12_13,10
	button,100,218,12,12,-1,13,var8_13,10
	button,100,218,12,12,-1,24,0,10


	//===========================================
	// SCROLL UP AND DOWN 5 DAYS
	//===========================================

	calcvar,var22,firstoutlookday
	calcvar,var22,-,%var22%,5

	imagebutton,100,156,scrollup.png,t,-1,25,var22,10
	button,100,156,12,12,-1,23,0,10

	imagebutton,100,233,scrolldown.png,t,-1,25,var19,10
	button,100,233,12,12,-1,23,0,10

	image,102,188,scrollbar.png,t

/ Angabe der Kalenderwoche (KW) des Jahres

	calcvar,var33,firstoutlookday

	if,var,var31,,<,38355
			//Jahr 2004
			addvar,var33,-37977
	else
		if,var,var33,,<,38719
			//Jahr 2005
			addvar,var33,-38348
		else
			if,var,var33,,<,39083	
				//Jahr 2006
				addvar,var33,-38712
			else
				//Jahr 2007
				addvar,var33,-39076
			endif
		endif
	endif

	calcvar,var32,/,%var33%,7

	changefont,tahoma,10b
	color,font,0_0_0
	text,205,5,Week %var32%,r
	color,font,-1_4_-1	
	changefont,tahoma,12

endregion,10,0


////////////////////////////////////////////////////////////////////////
// AUFGABEN  ENDE 
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 11 WELTZEITEN
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 11,0 WELTZEITEN DIGITAL
////////////////////////////////////////////////////////////////////////

region,11,0,30
	defregion,11,0,0,211,267
	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,4
	deactivatebuttons,5
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,11

	image,4,3,header.png

	changefont,tahoma,12,b
	text,105,3,Wereldtijden,c
	changefont,tahoma,12


	//CITY  1====================================

	image,17,24,Digitaluhr.png

	changefont,tahoma,18
	time,53,36,1,4,c
	changefont,tahoma,12

	image,7,75,Kalender_header_poom.png
	text,7,75,[name],l
	time,98,75,1,5,r,dd.MM.yy,,


	//CITY  2====================================

	image,121,24,Digitaluhr.png

	changefont,tahoma,18
	time,157,36,2,4,c
	changefont,tahoma,12

	image,111,75,Kalender_header_poom.png
	text,111,75,[name],l
	time,202,75,2,5,r,dd.MM.yy,,


	//CITY  3====================================

	image,17,99,Digitaluhr.png

	changefont,tahoma,18
	time,53,112,3,4,c
	changefont,tahoma,12

	image,7,151,Kalender_header_poom.png
	text,7,151,[name],l
	time,98,151,3,5,r,dd.MM.yy,,


	//CITY  4====================================

	image,121,99,Digitaluhr.png

	changefont,tahoma,18
	time,157,112,4,4,c
	changefont,tahoma,12

	image,111,151,Kalender_header_poom.png
	text,111,151,[name],l
	time,202,151,4,5,r,dd.MM.yy,,


	//CITY  5====================================

	image,17,176,Digitaluhr.png

	changefont,tahoma,18
	time,53,188,5,4,c
	changefont,tahoma,12

	image,7,227,Kalender_header_poom.png
	text,7,227,[name],l
	time,98,227,5,5,r,dd.MM.yy,,


	//CITY  6====================================

	image,121,176,Digitaluhr.png

	changefont,tahoma,18
	time,157,188,6,4,c
	changefont,tahoma,12

	image,111,227,Kalender_header_poom.png
	text,111,227,[name],l
	time,202,227,6,5,r,dd.MM.yy,,


	// STATUSZEILE==============================

	image,5,251,ortszeit.png
	image,91,249,wetter_ortszeit.png,

	text,7,251,Lokaal:,l
	time,48,251,-1,5,l,dd.MM.yy,,
	time,106,251,-1,4,c

	imagebutton,91,249,Ortszeitbutton.png,tr,-1,0,%apps-6-7-highlight

	imagebutton,125,251,zeitumschaltung_button.png,,11,4,1,1
	text,132,251,Analoge klok,l

endregion,11,0


////////////////////////////////////////////////////////////////////////
// REGION 11,1 WELTZEITEN ANALOG
////////////////////////////////////////////////////////////////////////

region,11,1,30
	defregion,11,0,0,211,267

	cleararea,0,0,211,267

	image,4,3,header.png

	changefont,tahoma,12,b
	text,105,3,Wereldtijden,c
	changefont,tahoma,12

	//CITY  1====================================

	image,28,20,analoguhr.png

	time,54,44,1,analog,Stundenzeiger.png,minutenzeiger.png

	image,7,75,Kalender_header_poom.png
	text,7,75,[name],l
	time,98,75,1,5,r,dd.MM.yy,,


	//CITY  2====================================

	image,132,20,analoguhr.png

	time,158,44,2,analog,Stundenzeiger.png,minutenzeiger.png

	image,111,75,Kalender_header_poom.png
	text,111,75,[name],l
	time,202,75,2,5,r,dd.MM.yy,,


	//CITY  3====================================

	image,28,96,analoguhr.png

	time,54,120,3,analog,Stundenzeiger.png,minutenzeiger.png

	image,7,151,Kalender_header_poom.png
	text,7,151,[name],l
	time,98,151,3,5,r,dd.MM.yy,,


	//CITY  4====================================

	image,132,96,analoguhr.png

	time,158,120,4,analog,Stundenzeiger.png,minutenzeiger.png

	image,111,151,Kalender_header_poom.png
	text,111,151,[name],l
	time,202,151,4,5,r,dd.MM.yy,,


	//CITY  5====================================

	image,28,172,analoguhr.png

	time,54,196,5,analog,Stundenzeiger.png,minutenzeiger.png

	image,7,227,Kalender_header_poom.png
	text,7,227,[name],l
	time,98,227,5,5,r,dd.MM.yy,,


	//CITY  6====================================

	image,132,172,analoguhr.png

	time,158,196,6,analog,Stundenzeiger.png,minutenzeiger.png

	image,111,227,Kalender_header_poom.png
	text,111,227,[name],l
	time,202,227,6,5,r,dd.MM.yy,,


	// STATUSZEILE==============================

	image,5,251,ortszeit.png
	image,91,249,wetter_ortszeit.png,

	text,7,251,Lokaal:,l
	time,48,251,-1,5,l,dd.MM.yy,,
	time,106,251,-1,4,c

	imagebutton,91,249,Ortszeitbutton.png,tr,-1,0,%apps-6-7-highlight

	imagebutton,125,251,zeitumschaltung_button.png,,11,4,0,1
	text,135,251,Digitale klok,l

endregion,11,1


////////////////////////////////////////////////////////////////////////
// WELTZEITEN  ENDE 
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 12 RSS  
////////////////////////////////////////////////////////////////////////

region,12,0,60
	defregion,12,0,0,211,267,

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,4
	deactivatebuttons,5
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,12
	activatebuttons,13

	updateregions,13,14,


	////////////////////////////////////////////////////////////////////////
	// REGION 13,0 RSS  BERSCHRIFTEN
	////////////////////////////////////////////////////////////////////////

	region,13,0,-1

	// BUTTONS UND SCROLLEISTEN=============================

		if,online
			imagebutton,79,248,linkonline.png,t,12,31,
		else
			imagebutton,79,248,linkoffline.png,t,12,30,
		endif

		initvar,var2,1

		imagebutton,100,249,refresh.png,t,-1,7,,12

		imagebutton,3,250,kalenderpfeil_links.png,t,12,13,var2_-1
		button,3,250,70,12,-1,6,var5=1
		button,3,250,70,12,-1,6,var6=207

		imagebutton,139,250,kalenderpfeil_rechts.png,t,12,13,var2_1
		button,139,250,70,12,-1,6,var5=1
		button,139,250,70,12,-1,6,var6=207

		image,197,207,scrollbar.png,t
		image,197,209,scrollbar.png,t

		imagebutton,195,192,scrollup.png,t,12,13,var5_-4
		button,195,192,11,12,-1,13,var6_-5	

		imagebutton,195,236,scrolldown.png,t,12,13,var5_4
		button,195,236,11,12,-1,13,var6_5

		if,var,var5,,>,19
			storevar,var5=17
			storevar,var6=227
		else
		endif
	

		if,var,var5,,<,1
			storevar,var5=1
			storevar,var6=207
		else
		endif
			
		image,197,%var6%,scroll1.png,t


		// BERSCHRIFTEN=============================

		if,var,var2,,>,%var28%
			storevar,var2=1
		else
		endif
		
		if,var,var2,,<,1
			storevar,var2=%var28%
		else
		endif
	
		load,rss,%var2%

		image,4,177,header.png

		text,108,177,%var2%,l
		text,113,177, / %var28%,l

		changefont,tahoma,12,b

		text,9,177,[name],l

		changefont,tahoma,12


	//========================================
	//Tijd laatste update
	//========================================

	
	if,var,var20,,<,240
		text,130,177,bijgewerkt: ,l
		text,182,177,[updatetime],l,H:mm
	else
		text,130,177,bijgewerkt: ,l
		color,font,255_0_0
		text,182,177,[updatetime],l,H:mm
		color,font,0_0_0

	endif

	if,refresh
		image,4,38,aktualiseren.png,t
	else
	endif
	
	imagebutton,4,38,Aktualisierungsbutton_main.png,,-1,7,-nohighlight,-1
/////

		RSS,title,13,194,180,12,%var5%,,,

		button,13,194,180,12,14,4,0-highlight,12
		button,13,194,180,12,-1,6,var4=%var5%


		if,online
			image,5,197,Markergrn.png,t
		else
	
			if,pagecached,%var5%
				image,5,197,Markergrn.png,t
			else
				image,5,197,Markerrot.png,t
			endif
		endif

		addvar,var5,1

		RSS,title,13,206,180,12,%var5%,,,
		button,13,206,180,12,14,4,0-highlight,12
		button,13,206,180,12,-1,6,var4=%var5%

		if,online
			image,5,209,Markergrn.png,t
		else

			if,pagecached,%var5%
				image,5,209,Markergrn.png,t
			else
				image,5,209,Markerrot.png,t
			endif
		endif

		addvar,var5,1

		RSS,title,13,218,180,12,%var5%,,,
		button,13,218,180,12,14,4,0-highlight,12
		button,13,218,180,12,-1,6,var4=%var5%

		if,online
			image,5,221,Markergrn.png,t
		else

			if,pagecached,%var5%
				image,5,221,Markergrn.png,t
			else
				image,5,221,Markerrot.png,t
			endif
		endif

		addvar,var5,1

		RSS,title,13,230,180,12,%var5%,,,
		button,13,230,180,12,14,4,0-highlight,12
		button,13,230,180,12,-1,6,var4=%var5%

		if,online
			image,5,233,Markergrn.png,t
		else

			if,pagecached,%var5%
				image,5,233,Markergrn.png,t
			else
				image,5,233,Markerrot.png,t
			endif
		endif

		if,online
			imagebutton,79,248,linkonline.png,t,12,31,
			imagebutton,118,248,News_verbunden.png,t,-1,12,%var4%
		else
			imagebutton,79,248,linkoffline.png,t,12,30,


			if,pagecached,%var4%
				imagebutton,118,248,News_verbunden.png,t,-1,12,%var4%
			else
   				imagebutton,118,248,News_getrennt.png,t,-1,12,%var4%
			endif
		endif


		addvar,var5,-3

		if,refresh
			image,4,177,Rss_Aktualisierung.png,t
		else
		endif

	endregion,13,0


	////////////////////////////////////////////////////////////////////////
	// RSS  BERSCHRIFTEN ENDE
	////////////////////////////////////////////////////////////////////////

	////////////////////////////////////////////////////////////////////////
	// REGION 14,0 RSS  TEXT
	////////////////////////////////////////////////////////////////////////

	region,14,0,-1

		load,rss,%var2%

		image,4,3,header.png

		changefont,tahoma,12,b
		RSS,title,5,3,200,12,%var4%,,,c
		changefont,tahoma,12,	
		
		RSS,description,5,18,205,158,%var4%,,,

	endregion,14,1


	////////////////////////////////////////////////////////////////////////
	// RSS  TEXT  ENDE
	////////////////////////////////////////////////////////////////////////

endregion,12,0


////////////////////////////////////////////////////////////////////////
// RSS  BEREICH ENDE
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 15  VERKNPFUNGEN
////////////////////////////////////////////////////////////////////////

/////// 
region,15,0,-1 
defregion,15,0,0,211,267, 

cleararea,0,0,211,267 


deactivatebuttons,2 
deactivatebuttons,3 
deactivatebuttons,4 
deactivatebuttons,5 
deactivatebuttons,6 
deactivatebuttons,7 
deactivatebuttons,8 
deactivatebuttons,9 
deactivatebuttons,10 
deactivatebuttons,11 
deactivatebuttons,12 
deactivatebuttons,13 
deactivatebuttons,16 
deactivatebuttons,17 
deactivatebuttons,18 
deactivatebuttons,19


activatebuttons,15 
updateregions,14 

initvar,var23,2 

changefont,Tahoma,11, 

image,4,3,header.png 

changefont,Tahoma,12,b 
text,105,3,%apps-%var23%%,c 
changefont,Tahoma,12 

image,4,20,header.png 

if,var,var23,,=,2 
image,5,21,header.png 
else 
endif 
if,var,var23,,=,3 
image,72,21,headline_breit_blau_verlauf2.png 
else 
endif 
if,var,var23,,=,4 
image,139,21,headline_breit_blau_verlauf2.png 
else 
endif 
if,var,var23,,=,5 
image,5,34,headline_breit_blau_verlauf2.png 
else 
endif 
if,var,var23,,=,7 
image,72,34,headline_breit_blau_verlauf2.png 
else 
endif 
if,var,var23,,=,8 
image,139,34,headline_breit_blau_verlauf2.png 
else 
endif 
if,var,var23,,=,9 
image,5,47,headline_breit_blau_verlauf2.png 
else 
endif 
if,var,var23,,=,10 
image,72,47,headline_breit_blau_verlauf2.png 
else 
endif 
if,var,var23,,=,11 
image,139,47,headline_breit_blau_verlauf2.png 
else 
endif 

button,5,21,68,13,-1,6,var16=2-highlight,15 
text,8,21,%apps-2%,l 
button,72,21,68,13,-1,6,var16=3-highlight,15 
text,107,21,%apps-3%,c 
button,139,21,68,13,-1,6,var16=4-highlight,15 
text,204,21,%apps-4%,r 

button,5,34,68,13,-1,6,var16=5-highlight,15 
text,8,34,%apps-5%,l 
button,72,34,68,13,-1,6,var16=7-highlight,15 
text,107,34,%apps-7%,c 
button,139,34,68,13,-1,6,var16=8-highlight,15 
text,204,34,%apps-8%,r 

button,5,47,68,13,-1,6,var16=9-highlight,15 
text,8,47,%apps-9%,l 
button,72,47,68,13,-1,6,var16=10-highlight,15 
text,107,47,%apps-10%,c 
button,139,47,68,13,-1,6,var16=11-highlight,15 
text,204,47,%apps-11%,r 

button,4,3,70,13,-1,6,var23=13-highlight,15 
button,138,3,70,13,-1,6,var23=12-highlight,15 
/////////// 
region,14,0,-1 
//defregion,19,0,65,211,202, 

shortcut,5,68,apps-%var23%-1,s 
button,3,66,100,20,-1,0,%apps-%var23%-1-highlight 
text,24,69,[name],l 
shortcut,110,68,apps-%var23%-2,s 
button,108,66,100,20,-1,0,%apps-%var23%-2-highlight 
text,129,69,[name],l 

shortcut,5,88,apps-%var23%-3,s 
button,3,86,100,20,-1,0,%apps-%var23%-3-highlight 
text,24,89,[name],l 
shortcut,110,88,apps-%var23%-4,s 
button,108,86,100,20,-1,0,%apps-%var23%-4-highlight 
text,129,89,[name],l 

shortcut,5,108,apps-%var23%-5,s 
button,3,106,100,20,-1,0,%apps-%var23%-5-highlight 
text,24,109,[name],l 
shortcut,110,108,apps-%var16%-6,s 
button,108,106,100,20,-1,0,%apps-%var23%-6-highlight 
text,129,109,[name],l 

shortcut,5,128,apps-%var23%-7,s 
button,3,126,100,20,-1,0,%apps-%var23%-7-highlight 
text,24,129,[name],l 
shortcut,110,128,apps-%var23%-8,s 
button,108,126,100,20,-1,0,%apps-%var23%-8-highlight 
text,129,129,[name],l 

shortcut,5,148,apps-%var23%-9,s 
button,3,146,100,20,-1,0,%apps-%var23%-9-highlight 
text,24,149,[name],l 
shortcut,110,148,apps-%var23%-10,s 
button,108,146,100,20,-1,0,%apps-%var23%-10-highlight 
text,129,149,[name],l 

shortcut,5,168,apps-%var23%-11,s 
button,3,166,100,20,-1,0,%apps-%var23%-11-highlight 
text,24,169,[name],l 
shortcut,110,168,apps-%var23%-12,s 
button,108,166,100,20,-1,0,%apps-%var23%-12-highlight 
text,129,169,[name],l 

shortcut,5,188,apps-%var23%-13,s 
button,3,186,100,20,-1,0,%apps-%var23%-13-highlight 
text,24,189,[name],l 
shortcut,110,188,apps-%var23%-14,s 
button,108,186,100,20,-1,0,%apps-%var23%-14-highlight 
text,129,189,[name],l 

shortcut,5,208,apps-%var23%-15,s 
button,3,206,100,20,-1,0,%apps-%var23%-15-highlight 
text,24,209,[name],l 
shortcut,110,208,apps-%var23%-16,s 
button,108,206,100,20,-1,0,%apps-%var23%-16-highlight 
text,129,209,[name],l 

shortcut,5,228,apps-%var23%-17,s 
button,3,226,100,20,-1,0,%apps-%var23%-17-highlight 
text,24,229,[name],l 
shortcut,110,228,apps-%var23%-18,s 
button,108,226,100,20,-1,0,%apps-%var23%-18-highlight 
text,129,229,[name],l 

shortcut,5,248,apps-%var23%-19,s 
button,3,246,100,20,-1,0,%apps-%var23%-19-highlight 
text,24,249,[name],l 
shortcut,110,248,apps-%var23%-20,s 
button,108,246,100,20,-1,0,%apps-%var23%-20-highlight 
text,129,249,[name],l 

endregion,14,0 

endregion,15,0 
////////
////////////////////////////////////////////////////////////////////////
// VERKNPFUNGEN  ENDE
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 16  SYSTEM 
////////////////////////////////////////////////////////////////////////

region,16,0,60
	defregion,16,0,0,211,267

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,4
	deactivatebuttons,5
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,17
	deactivatebuttons,18
	
	activatebuttons,16

	image,4,3,header.png

	changefont,tahoma,12,b
	text,105,3,Systeemstatus,c
	changefont,tahoma,12


	// BATTERIE==============================

	image,40,58,meters_background.png,t
	battery,bar,42,58,52,13,gradient_batterymain gradient.png
	image,40,58,meters.png,t

	imagebutton,40,58,Metersbutton.png,tr,-1,0,%apps-6-2-highlight

	changefont,tahoma,11

	if,batterystatusunknown
		image,6,46,batterie_unbekannt.png,t
		text,68,47,Batt: ?,c
	else

		if,charging
			image,6,46,batterie_laden.png,t
			text,68,47,Opladen...,c
		else

			if,externalpower,=,true
				image,6,46,batterie_geladen.png,t
				text,68,47,Netspanning,c
			else
				image,6,46,batterie.png,t
				battery,remaining,72,47,Batt: , %,c
			endif
		endif
	endif

	changefont,tahoma,12

	uptime,10,18,softreset,time,s,  HH:mm,Laatste softreset op:   , Uur,l 
	uptime,10,31,softreset,duration,Looptijd sinds laatste reset: , Uur/min,l

	text,97,51,Voltage:,l
	battery,voltage,196,51,, V,r

	uptime,97,63,battery,duration,Looptijd: ,  Uur/min,l 


	// SPEICHER=======================================

	memory,total,68,85,SP: , Mb,c,%.1f

	image,40,97,meters_background.png,t
	memory,barused,42,97,52,13,gradient_Speichermain gradient.png
	image,40,97,meters.png,t

	imagebutton,40,97,Metersbutton.png,tr,-1,0,%apps-6-3-highlight

	memory,storageused,40,110,, Mb,l,%.1f

	memory,programused,94,110,,,r,%.1f

	calcvar,var17,programmemoryusedpercent

	if,var,var17,1,><,50
		image,6,88,Speicherleer.png,t
	else

		if,var,var17,51,><,80
			image,6,88,Speichervoll.png,t
		else
			image,6,88,Speicherhot.png,t
		endif
	endif

	text,97,92,D Vrij:,l
	memory,storagefree,179,92,, Mb,r
	memory,storagefreepercent,208,92,/,%,r,%.0f

	text,97,105,P Vrij:,l
	memory,programfree,179,105,, Mb,r
	memory,programfreepercent,208,105,/,%,r,%.0f

	
	// FILE STORAGE=====================================

	image,3,131,memory_big.png,t

	image,40,136,meters_background.png,t
	storage,1,bar,42,136,52,13,gradient_storage gradient.png
	image,40,136,meters.png,t

	imagebutton,40,136,Metersbutton.png,tr,-1,0,%apps-6-4-highlight

	text,68,124,File-Store,c
	storage,1,total,68,147,, Mb,c

	text,97,129,Bezet: ,l
	storage,1,used,179,129,, Mb,r
	storage,1,usedpercent,208,129,/,%,r,%.0f

	text,97,142,Vrij: ,l
	storage,1,free,179,142,, Mb,r
	storage,1,freepercent,208,142,/,%,r,%.0f


	// SD KARTE==========================================

	image,14,171,sd.png,t

	image,40,175,meters_background.png,t
	storage,2,bar,42,175,52,13,gradient_storage gradient.png
	image,40,175,meters.png,t

	imagebutton,40,175,Metersbutton.png,tr,-1,0,%apps-6-5-highlight

	text,68,163,SD Kaart,c
	storage,2,total,68,187,, Mb,c

	text,97,168,Bezet: ,l
	storage,2,used,179,168,, Mb,r
	storage,2,usedpercent,208,168,/,%,r,%.0f

	text,97,181,Vrij: ,l
	storage,2,free,179,181,, Mb,r
	storage,2,freepercent,208,181,/,%,r,%.0f


	// CF KARTE==========================================

	image,10,211,cf.png,t

	image,40,215,meters_background.png,t
	storage,3,bar,42,215,52,13,gradient_storage gradient.png
	image,40,215,meters.png,t

	imagebutton,40,215,Metersbutton.png,tr,-1,0,%apps-6-6-highlight

	text,68,203,CF Kaart,c
	storage,3,total,68,228,, Mb,c

	text,97,208,Bezet: ,l
	storage,3,used,179,208,, Mb,r
	storage,3,usedpercent,208,208,/,%,r,%.0f

	text,97,221,Vrij: ,l
	storage,3,free,179,221,, Mb,r
	storage,3,freepercent,208,221,/,%,r,%.0f



// HELLIGKEITSREGELUNG 
	//=======================================

	image,140,235,neonschatten.png,
	imagebutton,140,235,neon.png,tr,-1,0,%apps-6-8-highlight


	// STATUSZEILE==============================


	if,var,var24,,=,1
		options,imagedir,images\Hammerskin
		imagebutton,5,251,buttonwechsel.png,t,-1,6,var24=2,-1
		button,5,251,82,13,17,4,999,16
	else
		options,imagedir,images\Metallic
		imagebutton,5,251,buttonwechsel.png,t,-1,6,var24=1,-1
		button,5,251,82,13,17,4,999,16
	endif

	text,12,251,Knoppenwissel,l

	
	imagebutton,91,249,Ortszeitbutton.png,t,-1,0,%apps-6-7-highlight

	imagebutton,125,251,wetter_auswahl.png,,17,4,0,16
	text,140,251,Keuze,l

	image,90,249,Wetter_ortszeit.png,
	time,106,251,-1,5,c,,"H:mm",

endregion,16,0


////////////////////////////////////////////////////////////////////////
// REGION 17,0 - SYSTEM AUSWAHL 
////////////////////////////////////////////////////////////////////////

region,17,0,-1

	cleararea,104,171,106,78

	deactivatebuttons,16

	activatebuttons,17

	image,103,171,System_auswahl_popup.png

	changefont,Tahoma,12,b

	text,109,174,Eigendomsinfo,l
	imagebutton,105,171,wetter_auswahl_popup_button.png,tr,18,4,0,16
	button,105,171,100,15,17,4,999

	text,109,188,Skinversie,l
	imagebutton,105,186,wetter_auswahl_popup_button.png,tr,18,4,1,16
	button,105,186,100,15,17,4,999

	imagebutton,105,201,wetter_auswahl_popup_button.png,tr,-1,0,%apps-6-9,16
	shortcut,1105,201,apps-6-9,s
	text,109,202,[name],l
	button,105,201,100,15,17,4,999

	imagebutton,105,216,wetter_auswahl_popup_button.png,tr,-1,0,%apps-6-10,16
	shortcut,1105,216,apps-6-10,s
	text,109,216,[name],l
	button,105,216,100,15,17,4,999

	color,font,255_0_0
	text,128,233,Annuleren,l
	imagebutton,105,231,wetter_auswahl_popup_button_abbrechen.png,tr,17,4,999,16
	color,font,0_0_0

	changefont,Tahoma,12,

endregion,17,0


//////////////////////////////////////////////////////////////////////////
// REGION 18,0 - EIGENTMERINFORMATIONEN
//////////////////////////////////////////////////////////////////////////

region,18,0,10

	cleararea,11,47,192,151

	deactivatebuttons,16
	deactivatebuttons,17

	activatebuttons,18

	clearregion,17

	image,10,45,wetterpopup.png


	//===================================
	//SCHLIESSENBUTTON
	//===================================

	imagebutton,180,51,popupschliessen.png,t,18,4,999,16


	//===================================
	//BERSCHRIFTEN
	//===================================

	changefont,Tahoma,12,b

	text,105,47,INFORMATIE ,c
	text,105,60,Eigenaar,c

	changefont,Tahoma,12,


	//===================================
	//EIGENTMERDETAILS
	//===================================

	image,15,80,%owner image%,

	text,98,100,Naam:,l
	changefont,Tahoma,12,b
	text,98,115,%owner name%,l
	changefont,Tahoma,12,

	text,20,156,Straat:,l
	text,20,168,Woonplaats:,l
	text,20,180,Telefoon:,l

	text,82,156,%owner address%,l
	text,82,168,%owner address2%,l
	text,82,180,%owner phone%,l

endregion,18,0

////////////////////////////////////////////////////////////////////////
// REGION 18,1 - SKIN INFORMATIONEN
////////////////////////////////////////////////////////////////////////

region,18,1,10
             
	deactivatebuttons,16
	deactivatebuttons,17

	activatebuttons,18

	clearregion,17

	cleararea,12,78,191,84

	image,10,78,Moonphasenpopup2.png

	imagebutton,180,83,popupschliessen.png,t,18,4,999,16

	image,20,109,Hammerskin.png
	image,157,109,Hammerskin.png

	changefont,Tahoma,12,b
	text,100,80,HAMMERSKIN das ORIGINAL,c
	changefont,Tahoma,12,

	text,105,96,Skinversie,c

	text,105,106,01.04a,c
	text,105,116,Datum: 19.09.2004,c
	changefont,Tahoma,11,
	text,105,127,powered by,c
	changefont,Tahoma,12,b
	text,105,138,W I C H T E L,c
	changefont,Tahoma,11,
	text,105,159,Geoptimaliseerd door The Gamblers,c
	text,105,149,Nederlandse vertaling door Motormuis,c
	changefont,Tahoma,12,
	
endregion,18,1


////////////////////////////////////////////////////////////////////////
// SKIN INFORMATIONEN  ENDE
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// SYSTEM  ENDE
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 1  BUTTON AREA 
////////////////////////////////////////////////////////////////////////

region,1,0,10
	defregion,1,210,0,29,267,1

	//// MAIN BUTTON======================

	imagebutton,211,3,mainbutton.png,t,2,4,0,1
	button,211,3,29,29,3,4,999
	button,211,3,29,29,7,4,999
	button,211,3,29,29,8,4,999
	button,211,3,29,29,9,4,999
	button,211,3,29,29,10,4,999
	button,211,3,29,29,11,4,999,
	button,211,3,29,29,12,4,999,
	button,211,3,29,29,15,4,999,
	button,211,3,29,29,16,4,999,
	button,211,3,29,29,17,4,999,
	button,211,3,29,29,18,4,999,

	button,211,3,29,29,2,10,0,2
	button,211,3,29,29,2,22,0,2
	button,211,3,29,29,2,23,0,2

	button,211,3,29,29,4,4,0
	button,211,3,29,29,5,4,0
	button,211,3,29,29,6,4,0


	//// WETTER BUTTON====================

	if,region,3,0
		imagebutton,211,32,wetterbutton_grau.png,t,3,4,0,1
		button,211,32,29,29,7,4,999,3
		button,211,32,29,29,8,4,999,3
	else
		imagebutton,211,32,wetterbutton.png,t,3,4,0,1
		button,211,32,29,29,2,4,999,3
		button,211,32,29,29,5,4,999,3
		button,211,32,29,29,6,4,999,3
		button,211,32,29,29,9,4,999,3
		button,211,32,29,29,10,4,999,3
		button,211,32,29,29,11,4,999,
		button,211,32,29,29,12,4,999,
		button,211,32,29,29,13,4,999,
		button,211,32,29,29,14,4,999
		button,211,32,29,29,15,4,999,
		button,211,32,29,29,16,4,999,
		button,211,32,29,29,17,4,999,
		button,211,32,29,29,18,4,999,
	endif


	//// AGENDA BUTTON====================

	if,region,9,0
		imagebutton,211,61,kalenderbutton_grau.png,t,9,4,0,1
		button,211,61,29,29,9,10,0,9
		button,211,61,29,29,9,22,0,9
		button,211,61,29,29,9,23,0,9
		button,211,61,29,29,9,10,1,9
		button,211,61,29,29,9,22,1,9
		button,211,61,29,29,9,23,1,9
	else
		imagebutton,211,61,kalenderbutton.png,t,9,4,0,1
		button,211,61,29,29,2,4,999,
		button,211,61,29,29,3,4,999,
		button,211,61,29,29,4,4,999,
		button,211,61,29,29,5,4,999,
		button,211,61,29,29,6,4,999,
		button,211,61,29,29,7,4,999,
		button,211,61,29,29,8,4,999,
		button,211,61,29,29,10,4,999,
		button,211,61,29,29,11,4,999,
		button,211,61,29,29,12,4,999,
		button,211,61,29,29,13,4,999,
		button,211,61,29,29,14,4,999,
		button,211,61,29,29,15,4,999,
		button,211,61,29,29,16,4,999,
		button,211,61,29,29,17,4,999,
		button,211,61,29,29,18,4,999,

		button,211,61,29,29,9,10,0,9
		button,211,61,29,29,9,22,0,9
		button,211,61,29,29,9,23,0,9
		button,211,61,29,29,9,10,1,9
		button,211,61,29,29,9,22,1,9
		button,211,61,29,29,9,23,1,9
	endif


	//// AUFGABEN  BUTTON====================

	if,region,10,0
		imagebutton,211,90,aufgabenbutton_grau.png,t,10,4,0,1
		button,211,90,29,29,10,10,0,10
		button,211,90,29,29,10,22,0,10
		button,211,90,29,29,10,23,0,10
		button,211,90,29,29,10,10,1,10
	else
		imagebutton,211,90,aufgabenbutton.png,t,10,4,0,1
		button,211,90,29,29,2,4,999,
		button,211,90,29,29,3,4,999,
		button,211,90,29,29,4,4,999,
		button,211,90,29,29,5,4,999,
		button,211,90,29,29,6,4,999,
		button,211,90,29,29,7,4,999,
		button,211,90,29,29,8,4,999,
		button,211,90,29,29,9,4,999,
		button,211,90,29,29,11,4,999,
		button,211,90,29,29,12,4,999,
		button,211,90,29,29,13,4,999,
		button,211,90,29,29,14,4,999,
		button,211,90,29,29,15,4,999,
		button,211,90,29,29,16,4,999,
		button,211,90,29,29,17,4,999,
		button,211,90,29,29,18,4,999,

		button,211,90,29,29,10,10,0,10
		button,211,90,29,29,10,22,0,10
		button,211,90,29,29,10,23,0,10
		button,211,90,29,29,10,10,1,10
	endif


	//// WELTZEITEN  BUTTON====================

	if,region,11,0
		imagebutton,211,119,zeitbutton_grau.png,t,11,4,0,1
	else
		if,region,11,1
			imagebutton,211,119,zeitbutton_grau.png,tr,11,4,1,1
		else
			imagebutton,211,119,zeitbutton.png,t,11,4,0,1
			button,211,119,29,29,2,4,999,
			button,211,119,29,29,3,4,999,
			button,211,119,29,29,4,4,999,
			button,211,119,29,29,5,4,999,
			button,211,119,29,29,6,4,999,
			button,211,119,29,29,7,4,999,
			button,211,119,29,29,8,4,999,
			button,211,119,29,29,9,4,999,
			button,211,119,29,29,10,4,999
			button,211,119,29,29,12,4,999
			button,211,119,29,29,13,4,999
			button,211,119,29,29,14,4,999
			button,211,119,29,29,15,4,999
			button,211,119,29,29,16,4,999
			button,211,119,29,29,17,4,999
			button,211,119,29,29,18,4,999
		endif
	endif


	//// RSS  BUTTON====================

	if,region,12,0
		imagebutton,211,148,rssbutton_grau.png,t,12,4,0,1
		button,211,148,29,29,13,4,0,1
		button,211,148,29,29,14,4,0,1
	else
		imagebutton,211,148,rssbutton.png,t,12,4,0,1
		button,211,148,29,29,13,4,0,1
		button,211,148,29,29,14,4,0,1

		button,211,148,29,29,2,4,999,
		button,211,148,29,29,3,4,999,
		button,211,148,29,29,4,4,999,
		button,211,148,29,29,5,4,999,
		button,211,148,29,29,6,4,999,
		button,211,148,29,29,7,4,999,
		button,211,148,29,29,8,4,999,
		button,211,148,29,29,9,4,999,
		button,211,148,29,29,10,4,999
		button,211,148,29,29,11,4,999
		button,211,148,29,29,15,4,999
		button,211,148,29,29,16,4,999
		button,211,148,29,29,17,4,999
		button,211,148,29,29,18,4,999
	endif


	//// VERKNPFUNGEN  BUTTON====================

	if,region,15,0
		imagebutton,211,177,verknuepfung_button_grau.png,t,15,4,0,1
	else

		if,region,15,1
			imagebutton,211,177,verknuepfung_button_grau.png,t,15,4,0,1
		else

			if,region,15,2
				imagebutton,211,177,verknuepfung_button_grau.png,t,15,4,0,1
			else

				if,region,15,3
					imagebutton,211,177,verknuepfung_button_grau.png,t,15,4,0,1
				else

					if,region,15,4
						imagebutton,211,177,verknuepfung_button_grau.png,t,15,4,0,1
					else
						imagebutton,211,177,verknuepfung_button.png,t,15,4,0,1
						button,211,177,29,29,2,4,999,
						button,211,177,29,29,3,4,999,
						button,211,177,29,29,4,4,999,
						button,211,177,29,29,5,4,999,
						button,211,177,29,29,6,4,999,
						button,211,177,29,29,7,4,999,
						button,211,177,29,29,8,4,999,
						button,211,177,29,29,9,4,999,
						button,211,177,29,29,10,4,999
						button,211,177,29,29,11,4,999
						button,211,177,29,29,12,4,999
						button,211,177,29,29,13,4,999
						button,211,177,29,29,14,4,999
						button,211,177,29,29,16,4,999
						button,211,177,29,29,17,4,999
						button,211,177,29,29,18,4,999
					endif
				endif
			endif
		endif
	endif


	//// SYSTEM BUTTON====================
	if,region,16,0
		imagebutton,211,206,systembutton_grau.png,t,16,4,0,1
		button,211,206,29,29,17,4,999,
		button,211,206,29,29,18,4,999,
	else
		imagebutton,211,206,systembutton.png,t,16,4,0,1
		button,211,206,29,29,2,4,999,
		button,211,206,29,29,3,4,999,
		button,211,206,29,29,4,4,999,
		button,211,206,29,29,5,4,999,
		button,211,206,29,29,6,4,999,
		button,211,206,29,29,7,4,999,
		button,211,206,29,29,8,4,999,
		button,211,206,29,29,9,4,999,
		button,211,206,29,29,10,4,999
		button,211,206,29,29,11,4,999
		button,211,206,29,29,12,4,999
		button,211,206,29,29,13,4,999
		button,211,206,29,29,14,4,999
		button,211,206,29,29,15,4,999
	endif


	//// SUSPEND BUTTON====================

	imagebutton,211,235,ausschaltbutton.png,t,-1,0,%apps-6-1-highlight
	
endregion,1,0


////////////////////////////////////////////////////////////////////////
// BUTTON AREA  ENDE
////////////////////////////////////////////////////////////////////////

offset,0,267


